package com.xcc.error;

import com.xcc.common.domain.entry.User;
import com.xcc.common.result.ResultBody;
import com.xcc.feign.UserFeignService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author frosty
 * @description
 * @date 2019-11-20 20:10:43
 */
@Component  /*这个注解要加  不然 找不到*/
public class UserErrorService   implements UserFeignService {
    private Logger logger = LoggerFactory.getLogger(UserErrorService.class);

    @Override
    public ResultBody getU() {
        return ResultBody.error("error is faild");
    }

    @Override
    public ResultBody register(User user) {
        return ResultBody.error(this.getClass()+"register");
    }



    @Override
    public ResultBody list(Map<String, Object> map) {
        return   ResultBody.error(this.getClass()+"list");
    }

   @Override
    public ResultBody find(String id) {
        return   ResultBody.error(this.getClass()+"find");
    }

    @Override
    public ResultBody update(User user) {
        return   ResultBody.error(this.getClass()+"update");
    }

    @Override
    public ResultBody delete(String id) {
        return   ResultBody.error(this.getClass()+"delete");
    }

    @Override
    public ResultBody login(String username, String password) {
        return   ResultBody.error(this.getClass()+"login");
    }
}
